-- GENERATED SPELL FOR [Arazzius the Cruel] --


function spell0_19191(pUnit, Event) --@Chilling Words,n/a--
pUnit:FullCastSpellOnTarget(34087,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19191', 6315, 1)
end

function spell1_19191(pUnit, Event) --@Doubting Mind,n/a--
pUnit:FullCastSpellOnTarget(34089,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19191', 12289, 1)
end

function spell2_19191(pUnit, Event) --@Feeble Weapons,n/a--
pUnit:FullCastSpellOnTarget(34088,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19191', 6328, 1)
end

function spell3_19191(pUnit, Event) --@Inferno,n/a--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(34249,pUnit:GetMainTank ())
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_19191', 1, 1)
end

function spell4_19191(pUnit, Event) --@Power of Arrazius,Self--
pUnit:FullCastSpellOnTarget(34094,pUnit)
pUnit:RegisterEvent('Sorts_19191', 581, 1)
end

function spell5_19191(pUnit, Event) --@Pyroblast,n/a--
pUnit:FullCastSpellOnTarget(33975,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19191', 18000, 1)
end

function spell6_19191(pUnit, Event) --@Shadow Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(15245,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19191', 3000, 1)
end

function Sorts_19191(pUnit, Event)
local choix_sorts_19191 = math.random(0, 6)
if choix_sorts_19191 == 0 then
pUnit:RegisterEvent('spell0_19191', 1, 1)
end
if choix_sorts_19191 == 1 then
pUnit:RegisterEvent('spell1_19191', 1, 1)
end
if choix_sorts_19191 == 2 then
pUnit:RegisterEvent('spell2_19191', 1, 1)
end
if choix_sorts_19191 == 3 then
pUnit:RegisterEvent('spell3_19191', 1, 1)
end
if choix_sorts_19191 == 4 then
pUnit:RegisterEvent('spell4_19191', 1, 1)
end
if choix_sorts_19191 == 5 then
pUnit:RegisterEvent('spell5_19191', 1, 1)
end
if choix_sorts_19191 == 6 then
pUnit:RegisterEvent('spell6_19191', 1, 1)
end
end

function mob19191_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19191', math.random(1500, 3000), 1)
end

function mob19191_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19191_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19191_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19191, 1, 'mob19191_Action')
RegisterUnitEvent(19191, 2, 'mob19191_Leave')
RegisterUnitEvent(19191, 3, 'mob19191_Kill')
RegisterUnitEvent(19191, 4, 'mob19191_Die')
